Skip to content

Extinct extensions serialization#3777

Open
olperr1 wants to merge 5 commits intomsa/3618-refactor-voltage-regulation-in-iidmfrom
extinct_extensions_serialization
Open

Extinct extensions serialization#3777
olperr1 wants to merge 5 commits intomsa/3618-refactor-voltage-regulation-in-iidmfrom
extinct_extensions_serialization

Conversation

@olperr1
Copy link
Member

@olperr1 olperr1 commented Feb 17, 2026

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Feature

What is the current behavior?

In the voltage regulation refactoring process, some data that were previously in extensions are moved into the IIDM model. So the corresponding extensions are not existing anymore.
But for backward-compatibility, these extensions must be present in the network files (XIIDM, JIIDM and BIIDM) exported to the previous IIDM versions.

In the first commits of #3699, the serialization was handled "manually" in NetworkSerDe.

What is the new behavior (if this is a feature change)?
This PR introduces a generic mechanism to handle the backward-compatibility of the serialization of the "extinct" extensions.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
@alicecaron alicecaron moved this from TODO to Waiting for review in Release 03/2026 Feb 24, 2026
@github-project-automation github-project-automation bot moved this from Waiting for review to Approved in Release 03/2026 Feb 24, 2026
@rolnico rolnico self-requested a review March 2, 2026 10:38
…nct_extensions_serialization

Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
3.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants